import request from '@/utils/request'

export function getHouseList(data) {
  return request({
    url: '/house/getListByPage?page=' + data.page + '&limit=' + data.limit +
    '&searchPhone=' + data.searchPhone +
      '&searchName=' + data.searchName +
      '&searchRealName=' + data.searchRealName,
    method: 'get'
  })
}

export function ban(data) {
  return request({
    url: '/house/ban',
    method: 'post',
    data: data
  })
}

export function cancelBan(data) {
  return request({
    url: '/house/cancelBan',
    method: 'post',
    data: data
  })
}
